<template>
  <div class="not-found-container">
    <div class="content">
      <!-- 去掉图片部分 -->
      <h1 class="title">404 页面不存在</h1>
      <p class="subtitle">很抱歉，您访问的页面未找到。</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goHome() {
      this.$router.push("/login");
    },
  },
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f9f9f9;
}

.content {
  text-align: center;
  max-width: 600px;
}

.title {
  font-size: 36px;
  color: #303133;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  color: #909399;
  margin-bottom: 30px;
}
</style>
